home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
MATH
/
VLN_20
/
LNK23.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-03-30
|
2KB
|
56 lines
unit lnk23; { links to vln ops a DLL to do very large number ops}
interface
{$I vlnconst.inc}
const
vlSize = 1000; {a limit of about 2^16000 }
vlmemsize = vlsize*4+4;
type
pWordArray = ^tWordArray;
tWordArray = array[1..vlSize] of word;
type pchar4 = array[0..4]of char;
procedure SetWkSize(n:integer);
function GetWkSize : integer;
procedure CloseTempRegs;
procedure OpenTempRegs;
function CreateProbVar : integer;
procedure DeleteProbVar( n : integer);
function GetCount( regNo : integer ) : integer;
function GetBinSize ( Reg1 : integer ) : integer;
function GetSign( regNo : integer ) : integer;
function FlipSign( regNo : integer ) : integer;
procedure Register_OP ( Reg1, op, Reg2 : integer);
procedure Number_OP( Reg1, op, aNum : integer);
procedure Op_2Self( Reg1, op : integer);
function SetWord( Reg1, pos: integer; nval : word ):integer;
function GetWord( Reg1, pos : integer) : word ;
function FastDiv ( Reg1, Reg2 : integer): integer;
function DivByBillion( regNo : integer ) : longint;
function Compare( Reg1, op, Reg2 : integer ): boolean;
implementation
procedure SetWkSize; external 'ops23';
function GetWkSize; external 'ops23';
procedure CloseTempRegs; external 'ops23';
procedure OpenTempRegs; external 'ops23';
function CreateProbVar; external 'ops23';
procedure DeleteProbVar; external 'ops23';
function GetCount; external 'ops23';
function GetBinSize; external 'ops23';
function GetSign; external 'ops23';
function FlipSign; external 'ops23';
procedure Register_OP; external 'ops23';
procedure Number_OP; external 'ops23';
procedure Op_2Self; external 'ops23';
function SetWord; external 'ops23';
function FastDiv; external 'ops23';
function GetWord; external 'ops23';
function DivByBillion; external 'ops23';
function Compare; external 'ops23';
end.